home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
disk
/
misc
/
HDOff_1_37.lha
/
HDOff.doc
< prev
next >
Wrap
PGP Signed Message
|
1996-09-01
|
11KB
|
261 lines
-----BEGIN PGP SIGNED MESSAGE-----
NAME
HDOff -- a program for the A600/A1200 and A4000 to stop the HD
motor.
SYNOPSIS
HDOff T=TIME/N,T2=TIME2/N,FORCE/S,OTHER/S,OTHER2/S,NOW/S,NOW2/S,
SET1200/S,SET4000/S,UPDATE/S,QUIET/S,STOP/S,STOP2/S
DESCRIPTION
HDOff is a program like NoiseSaver for the A1200 and A4000. It stops
the HD motor x minutes after the last access.
TIME, TIME2 :
Time in minutes after the 1st/2nd HD will shut down.
FORCE :
Forces HDOff to quit. Normaly HDOff doesn`t quit if another
programm (like cachesoftware ) patched the scsi.device after
HDOff did. But if you are using SetFuncManager (or something
similar), HDOff can nevertheless quit without danger. ONLY USE
THIS OPTION IF YOU ARE USING SETFUNCMANAGER OR SOMTHING LIKE
IT!
OTHER, OTHER2 :
This option makes HDOff to use an alternative command ($94
instead of $E0) to stop the HD`s motor. If your HD doesn`t
spin down, try this option. Some drives, especially older
ones, don`t support the `STANDBY` (all newer drives should
support it, at least the "green-PC" drives supporting power
management).
NOW, NOW2 :
The selected HD spins down immediately on startup, the program
just does it`s normal job (usefull for seldom used HD`s).
SET1200, SET4000:
With some odd HD`s, HDOff isn`t able to detect wich controller
is present in your Amiga (this happens, too, if you have a
CD-Rom connected but no CD inserted). If you start HDOff and
get a "Incorrect HD controller!" message, but are actually
using an A600/A1200/A4000, use the option SET1200 for an
A600/A1200 or SET4000 for an A4000.
UPDATE:
With this option you can adjust the shutdowntime online.
QUIET:
Using this option HDOff won`t print anything out (similar to
>NIL:). Usefull e.g. if you start it in the user-startup.
STOP, STOP2:
HDOff will just stop the 1st (STOP) or 2nd (STOP2) harddrive,
but HDOff won`t be installed.
NOTE
Be shure not to set the "time" value too low (maximum are 65535 minutes
:) as permanently spinning the drive up and down does shorten the life
expectancy of the drive (60 minutes is a good choice).
You don`t need to start HDOff with run.
To quit HDOff, simply restart it.
If a requester with the message "Someone else has patched
scsi.device!..." pops up, someone else (e.g. caching software) has
latched into the scsi.device. For security reasons HDOff cannot be
terminated this time.
This program is 100% written in assembler (DevPac 3.14) and (as far as
its possible) systemconform.
EXAMPLES
1. HDOff 30
Stops the motor of the 1st HD 30 minutes after the last access.
2. HDOff 30 15 OTHER2
Stops the motor of the 1st HD 30 minutes, the motor of the 2nd HD 15
minutes after the last access. For the 2nd HD the alternative command
will be used to stop the motor
3. HDOff T2=20
Stops the motor of the 2nd HD 30 minutes after the last access.
4. HDOff 30 15 NOW2
Stops the motor of the 1st HD 30 minutes, the motor of the 2nd HD
immediately. If the 2nd HD was accessed and so spins up, the next spin
down will again happen after 15 mins.
5. HDOff 50 10 UDPATE
If you already started HDOff, the timeout`s for the HD`s will be
changed to the new values.
6. HDOff STOP QUIET
This will just and only stop the 1st drive, there will not be any
timeout! Additionally there will be no output.
TECHNICAL
How does it work? The essential things are:
1. Test if ide controller is present (if not: quit)
2. Patch scsi.device (using SetFunction, of course). The patch
signals HD accesses to the main task.
3. Count the timer down and reinitialize it if a signal from the patch
occures.
4. If timer reaches 0: Signal the patch to delay all commands (for
both drives) till the signal is retracted. Security delay 1 sec.
Forbid(), Wait_IDE_unbusy, select drive (master/slave),
Wait_IDE_unbusy, spin down HD, Permit(). Retract the signal for the
patch for the HD that was not stopped, for the other one after a 5 secs
security delay (spin up is done by the HD itself).
5. Check, if there are any messages and process them.
6. Repeat step 3-4 until abort.
For more information about the messageport have a look in
Developers.doc!
DISCLAIMER & COPYRIGHT
This software is subject to the "Standard Amiga FD-Software Copyright
Note" It is Freeware as defined in paragraph 4a. For more information
please read "AFD-COPYRIGHT" (Version 1 or higher).
AUTHOR
Gideon Zenz
Giersbergstr. 41
53229 Bonn
GERMANY
EMail: gzenz@ernie.mi.uni-koeln.de
News about HDOff at: http://ernie.mi.uni-koeln.de/~gzenz/hdoff.html
-Gideon Zenz, 26-Jun-96
BUGS
Non known.
FUTURE
I have now a SCSI-only system, but this didn`t prevent me not to do a
SCSI version of HDOff. The reasons are that HDOff wasn`t planned to
support more than 2 drives, and not more then one device, so it will be
quite difficult to implement. But we`ll see B-)
HISTORY
v1.0: (08-Mai-94)
- Initial release
v1.1: (30-Jan-95)
- Timerloop in minutes and much more precisely
- No need to start with run any more
- At all more secure and more systemconform
- A4000 support
v1.2: (20-Apr-95)
- docs completely rewritten
- Support of 2nd HD`s
- New args OTHER and OTHER2 and NOW and NOW2
v1.33: (7-Jan-96)
- HDOff crashed if started on heavy diskaccess.
- new options SET1200 and SET4000
- Implementation of the onlineport. Have a look in
Developers.doc for usage.
v1.34: (22-Feb-96)
- Fixed a bug in the onlineport: PortVer wasn`t set.
- Added GetStats&Source
- Completely reworked Developer.doc
- Now working 100% on A600
- New arg UPDATE (thx to Ingo Eickelkamp for suggestion)
v1.35: (16-Mar-96)
- New option QUIET
- Bugfix in UPDATE, wrong values were taken
- Now there is again a check if you enter too big values
- MAJOR bug: HD spun only the 1st time down on a1200 [thx to Oli Lohr]
- System of timecounting changed, now 100% accurate
- NOW(2) working again [thx to Oli Lohr]
- New options STOP(2) [thx to A.BOERNER@bbrandes.berlinet.de]
- New, bugfixed and improed version of Getstats [Thx Matthias Andree!]
v1.36: (26-Jun-96)
- Some bugfixes
- Message port expanded/changed (look at Developers.doc)
- Everything is now multi threaded, so msg`s etc are immediately
processed now.
- Included new, advanced GetStats
v1.37 (1-Sep-96)
- Fixed Mungwallhit
- Optimized
- Msgport updated for GUI by M.Andree (look at Developers.doc)
- adapted GetStats
THANKS
Many thanks to heureka@bigben.dssd.sub.org and M.ZIELINSKI@
amtrash.comlink.de for their helps on A4000 and 2nd HD support, and all
other`s who wrote me! A special thank must go out to Matthias Andree,
who had a look at the docs, and who is now doing a nice GUI!
SECURITY
If you want to be shure you have the original programs, check
with "md5sum -c HDOff.doc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